package cn.iocoder.yudao.module.shop.controller.admin.itemtimesrecharge.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 项目次数充值 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class ShopItemTimesRechargeBaseVO {

    @Schema(description = "会员id", requiredMode = Schema.RequiredMode.REQUIRED, example = "13010")
    @NotNull(message = "会员id不能为空")
    private Long memberId;

    @Schema(description = "项目id", requiredMode = Schema.RequiredMode.REQUIRED, example = "25006")
    @NotNull(message = "项目id不能为空")
    private Long itemId;

    @Schema(description = "项目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotNull(message = "项目名称不能为空")
    private String itemName;

    @Schema(description = "支付金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "16218")
    @NotNull(message = "支付金额不能为空")
    private Integer payPrice;

    @Schema(description = "次数", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "次数不能为空")
    private Integer times;

    @Schema(description = "原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "不好")
    @NotNull(message = "原因不能为空")
    private String reason;

    @Schema(description = "支付时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "支付时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime payTime;

}
